package com.service.screenReception.entity;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

public class SiteInfo implements Serializable {
    private String id;
    private String tenantId;
    private String name;
    private String description;
    private List<String> type;
    private String latitude;
    private String longtitude;
    private String contact;
    private List<String> tag;
    private Boolean isolated;
    private String email;
    private String phone;
    private String postcode;
    private String address;

    private String typeStr;
    private String tagStr;

    public String getTypeStr() {
        if(type!=null)
        {
            return type.toString();
        }
        return this.typeStr;
    }

    public void setTypeStr(String typeStr) {
        this.typeStr = typeStr;
    }

    public String getTagStr() {
        if(tag!=null)
        {
            return tag.toString();
        }
        return this.tagStr;
    }

    public void setTagStr(String tagStr) {
        this.tagStr = tagStr;
    }

    @Override
    public String toString() {
        return "SiteInfo{" +
                "id='" + id + '\'' +
                ", tenantId='" + tenantId + '\'' +
                ", name='" + name + '\'' +
                ", description='" + description + '\'' +
                ", type=" + type +
                ", latitude='" + latitude + '\'' +
                ", longtitude='" + longtitude + '\'' +
                ", contact='" + contact + '\'' +
                ", tag=" + tag +
                ", isolated=" + isolated +
                ", email='" + email + '\'' +
                ", phone='" + phone + '\'' +
                ", postcode='" + postcode + '\'' +
                ", address='" + address + '\'' +
                ", typeStr='" + typeStr + '\'' +
                ", tagStr='" + tagStr + '\'' +
                '}';
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTenantId() {
        return tenantId;
    }

    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public List<String> getType() {
        return type;
    }

    public void setType(List<String> type) {
        this.type = type;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getLongtitude() {
        return longtitude;
    }

    public void setLongtitude(String longtitude) {
        this.longtitude = longtitude;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public List<String> getTag() {
        return tag;
    }

    public void setTag(List<String> tag) {
        this.tag = tag;
    }

    public Boolean getIsolated() {
        return isolated;
    }

    public void setIsolated(Boolean isolated) {
        this.isolated = isolated;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPostcode() {
        return postcode;
    }

    public void setPostcode(String postcode) {
        this.postcode = postcode;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
}
